<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::GeneratorTrees Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_generator_trees.html">GeneratorTrees</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classhelib_1_1_generator_trees-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::GeneratorTrees Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A std::vector of generator trees, one per generator in Zm*&zwj;/(p)  
 <a href="classhelib_1_1_generator_trees.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="permutations_8h_source.html">permutations.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a42a860ff4a6aeddeb35596b8ced46af6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a42a860ff4a6aeddeb35596b8ced46af6">GeneratorTrees</a> ()</td></tr>
<tr class="separator:a42a860ff4a6aeddeb35596b8ced46af6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08df7eda4dc9cb44c6900c2b3bea0cda"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a08df7eda4dc9cb44c6900c2b3bea0cda">numLayers</a> () const</td></tr>
<tr class="separator:a08df7eda4dc9cb44c6900c2b3bea0cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a409877a65286742bce5dfd602c0f61fb"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a409877a65286742bce5dfd602c0f61fb">numTrees</a> () const</td></tr>
<tr class="separator:a409877a65286742bce5dfd602c0f61fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeba4a1ecbde123ce39cf207b2b999d9c"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#aeba4a1ecbde123ce39cf207b2b999d9c">getSize</a> () const</td></tr>
<tr class="separator:aeba4a1ecbde123ce39cf207b2b999d9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a926596f994e0f372a6115c8518e63961"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a926596f994e0f372a6115c8518e63961">operator[]</a> (long i)</td></tr>
<tr class="separator:a926596f994e0f372a6115c8518e63961"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e5ce4dbec3ce781150841eb86ca0171"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a5e5ce4dbec3ce781150841eb86ca0171">operator[]</a> (long i) const</td></tr>
<tr class="separator:a5e5ce4dbec3ce781150841eb86ca0171"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada5044b425b9e1a287c43af7985721ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#ada5044b425b9e1a287c43af7985721ee">at</a> (long i)</td></tr>
<tr class="separator:ada5044b425b9e1a287c43af7985721ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc20c3f1ee7feaf70e5d9eeda5768c59"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#acc20c3f1ee7feaf70e5d9eeda5768c59">at</a> (long i) const</td></tr>
<tr class="separator:acc20c3f1ee7feaf70e5d9eeda5768c59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a089d3a37735f4dc2263c6e50919c04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a6a089d3a37735f4dc2263c6e50919c04">getGenTree</a> (long i)</td></tr>
<tr class="separator:a6a089d3a37735f4dc2263c6e50919c04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14ea69288666f85258a6879a8cf603fd"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a14ea69288666f85258a6879a8cf603fd">getGenTree</a> (long i) const</td></tr>
<tr class="separator:a14ea69288666f85258a6879a8cf603fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a743b844dbf992516d6ff6019aa49f54d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a743b844dbf992516d6ff6019aa49f54d">mapToCube</a> () const</td></tr>
<tr class="separator:a743b844dbf992516d6ff6019aa49f54d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1fc160bcf09404218e1601140f5ff05"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#af1fc160bcf09404218e1601140f5ff05">mapToArray</a> () const</td></tr>
<tr class="separator:af1fc160bcf09404218e1601140f5ff05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abae76f45adc4861d192e56f0c15f33a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#abae76f45adc4861d192e56f0c15f33a0">mapToCube</a> ()</td></tr>
<tr class="separator:abae76f45adc4861d192e56f0c15f33a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dbc3e62f5d58219c9b1bb6f1e5ff603"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a6dbc3e62f5d58219c9b1bb6f1e5ff603">mapToArray</a> ()</td></tr>
<tr class="separator:a6dbc3e62f5d58219c9b1bb6f1e5ff603"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5c5e1b7c602e7b870ed63fd6df7d2a0"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#aa5c5e1b7c602e7b870ed63fd6df7d2a0">mapToCube</a> (long i) const</td></tr>
<tr class="separator:aa5c5e1b7c602e7b870ed63fd6df7d2a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5986fc2b3d3ca6414583fb61355e4719"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a5986fc2b3d3ca6414583fb61355e4719">mapToArray</a> (long i) const</td></tr>
<tr class="separator:a5986fc2b3d3ca6414583fb61355e4719"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93858852234fd096960f689cf2bf00eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a93858852234fd096960f689cf2bf00eb">getCubeDims</a> (NTL::Vec&lt; long &gt; &amp;dims) const</td></tr>
<tr class="separator:a93858852234fd096960f689cf2bf00eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb421d196c02799e1611be09eaa71220"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#abb421d196c02799e1611be09eaa71220">getCubeSubDims</a> (NTL::Vec&lt; long &gt; &amp;dims) const</td></tr>
<tr class="separator:abb421d196c02799e1611be09eaa71220"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abde39d00c689b409268969f7e29414be"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#abde39d00c689b409268969f7e29414be">buildOptimalTrees</a> (const NTL::Vec&lt; <a class="el" href="classhelib_1_1_gen_descriptor.html">GenDescriptor</a> &gt; &amp;vec, long depthBound)</td></tr>
<tr class="separator:abde39d00c689b409268969f7e29414be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d5d127d11b5736b62ce5e5dd51d7927"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#a2d5d127d11b5736b62ce5e5dd51d7927">ComputeCubeMapping</a> ()</td></tr>
<tr class="memdesc:a2d5d127d11b5736b62ce5e5dd51d7927"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes permutations mapping between linear array and the cube.  <a href="classhelib_1_1_generator_trees.html#a2d5d127d11b5736b62ce5e5dd51d7927">More...</a><br /></td></tr>
<tr class="separator:a2d5d127d11b5736b62ce5e5dd51d7927"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ae6360cb4b9adbf55b91ac2cdbe5515df"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_generator_trees.html#ae6360cb4b9adbf55b91ac2cdbe5515df">operator&lt;&lt;</a> (std::ostream &amp;s, const <a class="el" href="classhelib_1_1_generator_trees.html">GeneratorTrees</a> &amp;t)</td></tr>
<tr class="separator:ae6360cb4b9adbf55b91ac2cdbe5515df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A std::vector of generator trees, one per generator in Zm*&zwj;/(p) </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a42a860ff4a6aeddeb35596b8ced46af6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42a860ff4a6aeddeb35596b8ced46af6">&#9670;&nbsp;</a></span>GeneratorTrees()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::GeneratorTrees::GeneratorTrees </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ada5044b425b9e1a287c43af7985721ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada5044b425b9e1a287c43af7985721ee">&#9670;&nbsp;</a></span>at() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a>&amp; helib::GeneratorTrees::at </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acc20c3f1ee7feaf70e5d9eeda5768c59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc20c3f1ee7feaf70e5d9eeda5768c59">&#9670;&nbsp;</a></span>at() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a>&amp; helib::GeneratorTrees::at </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abde39d00c689b409268969f7e29414be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abde39d00c689b409268969f7e29414be">&#9670;&nbsp;</a></span>buildOptimalTrees()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long helib::GeneratorTrees::buildOptimalTrees </td>
          <td>(</td>
          <td class="paramtype">const NTL::Vec&lt; <a class="el" href="classhelib_1_1_gen_descriptor.html">GenDescriptor</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>vec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>depthBound</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Compute the trees corresponding to the "optimal" way of breaking a permutation into dimensions, subject to some constraints. Returns the cost (# of 1D shifts) of this solution. Returns NTL_MAX_LONG if no solution </p>

</div>
</div>
<a id="a2d5d127d11b5736b62ce5e5dd51d7927"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d5d127d11b5736b62ce5e5dd51d7927">&#9670;&nbsp;</a></span>ComputeCubeMapping()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void helib::GeneratorTrees::ComputeCubeMapping </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes permutations mapping between linear array and the cube. </p>
<p>If the cube dimensions (i.e., leaves of tree) are n1,n2,...,nt and N=\prod_j n_j is the size of the cube, then an integer i can be represented in either the mixed base of the n_j's or in "CRT basis" relative to the leaves: Namely either i = \sum_{j&lt;=t} i_j * \prod_{k&gt;j} n_k, or i = \sum_leaf i'_leaf * leaf.e mod N.</p>
<p>The breakPermByDim procedure expects its input in the mixed-base representation, and the maps are used to convert back and forth. Specifically, let (i'_1,...,i'_t) be the CRT representation of i in this cube, and j = \sum_{j=1}^t i'_j * \prod_{k&gt;j} n_k, then we have map2cube[i]=j and map2array[j]=i. </p>

</div>
</div>
<a id="a93858852234fd096960f689cf2bf00eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93858852234fd096960f689cf2bf00eb">&#9670;&nbsp;</a></span>getCubeDims()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void helib::GeneratorTrees::getCubeDims </td>
          <td>(</td>
          <td class="paramtype">NTL::Vec&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>dims</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the "crude" cube dimensions corresponding to the vector of trees, the ordered vector with one dimension per tree </p>

</div>
</div>
<a id="abb421d196c02799e1611be09eaa71220"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb421d196c02799e1611be09eaa71220">&#9670;&nbsp;</a></span>getCubeSubDims()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void helib::GeneratorTrees::getCubeSubDims </td>
          <td>(</td>
          <td class="paramtype">NTL::Vec&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>dims</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the "fine" cube dimensions corresponding to the vector of trees, the ordered vector with one dimension per leaf in all the trees. </p>

</div>
</div>
<a id="a6a089d3a37735f4dc2263c6e50919c04"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a089d3a37735f4dc2263c6e50919c04">&#9670;&nbsp;</a></span>getGenTree() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a>&amp; helib::GeneratorTrees::getGenTree </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a14ea69288666f85258a6879a8cf603fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14ea69288666f85258a6879a8cf603fd">&#9670;&nbsp;</a></span>getGenTree() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a>&amp; helib::GeneratorTrees::getGenTree </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aeba4a1ecbde123ce39cf207b2b999d9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeba4a1ecbde123ce39cf207b2b999d9c">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::GeneratorTrees::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6dbc3e62f5d58219c9b1bb6f1e5ff603"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dbc3e62f5d58219c9b1bb6f1e5ff603">&#9670;&nbsp;</a></span>mapToArray() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a>&amp; helib::GeneratorTrees::mapToArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af1fc160bcf09404218e1601140f5ff05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1fc160bcf09404218e1601140f5ff05">&#9670;&nbsp;</a></span>mapToArray() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a>&amp; helib::GeneratorTrees::mapToArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5986fc2b3d3ca6414583fb61355e4719"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5986fc2b3d3ca6414583fb61355e4719">&#9670;&nbsp;</a></span>mapToArray() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::GeneratorTrees::mapToArray </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abae76f45adc4861d192e56f0c15f33a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abae76f45adc4861d192e56f0c15f33a0">&#9670;&nbsp;</a></span>mapToCube() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a>&amp; helib::GeneratorTrees::mapToCube </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a743b844dbf992516d6ff6019aa49f54d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a743b844dbf992516d6ff6019aa49f54d">&#9670;&nbsp;</a></span>mapToCube() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespacehelib.html#ae0769a209e14d5e1bfd8579072397867">Permut</a>&amp; helib::GeneratorTrees::mapToCube </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa5c5e1b7c602e7b870ed63fd6df7d2a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5c5e1b7c602e7b870ed63fd6df7d2a0">&#9670;&nbsp;</a></span>mapToCube() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::GeneratorTrees::mapToCube </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a08df7eda4dc9cb44c6900c2b3bea0cda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08df7eda4dc9cb44c6900c2b3bea0cda">&#9670;&nbsp;</a></span>numLayers()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::GeneratorTrees::numLayers </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a409877a65286742bce5dfd602c0f61fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a409877a65286742bce5dfd602c0f61fb">&#9670;&nbsp;</a></span>numTrees()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::GeneratorTrees::numTrees </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a926596f994e0f372a6115c8518e63961"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a926596f994e0f372a6115c8518e63961">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a>&amp; helib::GeneratorTrees::operator[] </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5e5ce4dbec3ce781150841eb86ca0171"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e5ce4dbec3ce781150841eb86ca0171">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespacehelib.html#a22b83b7df1af539c07c804d7888448ce">OneGeneratorTree</a>&amp; helib::GeneratorTrees::operator[] </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="ae6360cb4b9adbf55b91ac2cdbe5515df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6360cb4b9adbf55b91ac2cdbe5515df">&#9670;&nbsp;</a></span>operator&lt;&lt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_generator_trees.html">GeneratorTrees</a> &amp;&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/HElib/include/helib/<a class="el" href="permutations_8h_source.html">permutations.h</a></li>
<li>/HElib/src/<a class="el" href="_optimize_permutations_8cpp.html">OptimizePermutations.cpp</a></li>
<li>/HElib/src/<a class="el" href="permutations_8cpp.html">permutations.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
